<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
    <head>
        <th:block th:include="include::header('')" />
    </head>
    <style type="text/css">
        #febs-accidentModuleConfig .accidentModuleConfig-body{
            margin-top: 10px;
            height: calc(100% - 95px);
        }
        #febs-accidentModuleConfig .layui-card-header {
            font-size: 16px;
            font-weight: 800;
        }
        #febs-accidentModuleConfig .layui-card-footer {
            padding: 10px;
            line-height: 36px;
            text-align: left;
            background: #f9f9f9;
        }
        #febs-accidentModuleConfig .accidentModuleConfig-body .layui-form-label {
            width: 110px;
        }
        #febs-accidentModuleConfig .accidentModuleConfig-body .layui-input-block {
            margin-left: 140px;
        }
    </style>
    <body class="febs-container" id="febs-accidentModuleConfig">
        <div class="febs-body layui-fluid"  lay-title="事故模块配置" >
            <div class="febs-body-search" th:if="${hasHeadCompanyRole}">
                <form class="layui-form layui-table-form" lay-filter="accidentModuleConfig-table-form" id="accidentModuleConfig-table-form">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label layui-form-label-sm">公司名称</label>
                                    <div class="layui-input-inline" style="width: 280px;">
                                        <select name="tenantSelect" id="tenantSelect" lay-search="" th:disabled="!${hasHeadCompanyRole}">
                                            <option th:each="item:${tenantList }"
                                                    th:value="${item.tenantId}" th:text="${item.tenantName}"
                                                    th:selected="${currentTenantId ==item.tenantId}">
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <div id="query" class="layui-btn">
                                        <em class="layui-icon">&#xe615;</em> 查询
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="accidentModuleConfig-body" th:style="'margin-top:'+(${hasHeadCompanyRole} ? '10px;':'0px;')+'height:'+(${hasHeadCompanyRole} ? 'calc(100% - 80px);':'calc(100% - 0px);')">
                <form class="layui-form layui-table-form febs-full" action="" lay-filter="accidentModuleConfig-form">
                    <div class="layui-row layui-col-space15" style="height: calc(100% - 45px);">
                        <div class="layui-col-md4 febs-full">
                            <div class="layui-card febs-full">
                                <div class="layui-card-header" id="form-header">审核配置</div>
                                <div class="layui-card-body" style="height: calc(100% - 120px);">
                                    <div class="layui-form-item febs-hide">
                                        <label class="layui-form-label febs-form-item-require">ID：</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="moduleConfigId" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label layui-form-label-sm febs-form-item-require">调查审核开关：</label>
                                            <div class="layui-input-block">
                                                <input type="checkbox" name="surveyReviewSwitch" lay-filter="surveyReviewSwitch" lay-skin="switch" lay-text="开启|关闭" lay-verify="required">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" id="surveyReviewTypeDiv" style="display: none">
                                        <div class="layui-inline">
                                            <label class="layui-form-label layui-form-label-sm febs-form-item-require">调查审核方式：</label>
                                            <div class="layui-input-block">
                                                <input type="radio" name="surveyReviewType" title="手动审核" value="1" checked>
                                                <input type="radio" name="surveyReviewType" title="流程审核" value="2">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label layui-form-label-sm febs-form-item-require">整改审核开关：</label>
                                            <div class="layui-input-block">
                                                <input type="checkbox" name="rectificationReviewSwitch" lay-filter="rectificationReviewSwitch" lay-skin="switch" lay-text="开启|关闭" lay-verify="required">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" id="rectificationReviewTypeDiv" style="display: none">
                                        <div class="layui-inline">
                                            <label class="layui-form-label layui-form-label-sm febs-form-item-require">整改审核方式：</label>
                                            <div class="layui-input-block">
                                                <input type="radio" name="rectificationReviewType" title="手动审核" value="1" checked>
                                                <input type="radio" name="rectificationReviewType" title="流程审核" value="2">
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-card-footer" style="background: #f9f9f9;text-align: center;">
                        <button class="layui-btn" lay-submit="" lay-filter="accidentModuleConfig-form-submit"
                                id="submit-form">保存</button>
                    </div>

                </form>
            </div>
        </div>
        <th:block th:include="include::foot" />
        <script data-th-inline="javascript">
            var accidentModuleConfig = [[${accidentModuleConfig}]];
        </script>
        <script th:src="@{/febs/js/accidentModuleConfig/accidentModuleConfigList.js(v=1)}"></script>
    </body>
</html>